// dlg.txt

//	mark_quest_dest(zone,x,y,layer,quest);
//	cancel_out_fight(0,short kill_enc)
//	make_outdoor_enc(short x,short y,short which_enc);
//	set_out_fight_field(short which_field);

begintalkscript;

variables;

short this_sec = 33;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "In the middle of the clearing ahead, you see a gigantic mausoleum. It is surrounded by campsites, mostly empty. People come here from all over the Rokaj to leave the remains of their more honored relatives.";
	text2 = "There are no guards. If you wanted to enter, you only need to walk in.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "You find the body of a Ro hunter frozen mostly inside this sheet of ice. There are no visible wounds. This warrior died of incredible cold.";
	text2 = "All items of value have been carefully picked up and taken away.";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "Two small, poor clans of the High Litha have built their humble halls along this road. When you pass by, gaunt, leather-clad folk come out to watch you.";
	text2 = "When you come close to them, they enter their homes and lock the doors. They don't give you a chance to convince them to like you.";
	text3 = "Your presence scares them. They are fierce and armed, but they have nothing to match your power. However, they sort of trust you.";
	text4 = "They don't invite you into their homes, but a few of them bring out tea and bread and sit with you by the fire. They don't have any valuable information, but they do give you a chance to warm your bones.";
	code =
		sf(100 + this_sec,3,1);
		if (gf(80,16) < 110) {
			rs(3); rs(4);
			}
			else rs(2);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "You are able to search the drake's massive nest. The beast accumulated a decent-sized hoard. You find coins and other trade goods. Some broken weapons. Not interesting. Under them, you find a pair of scroll tubes. You grab those.";
	code =
		sf(100 + this_sec,4,1);
		change_coins(103,TRUE);
		change_crafting(0,1,0,0,0);
		reward_give(406);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "You look for an alternate exit. It does no good. The wolves pounce.";
	code =
		set_out_fight_field(5);
	break;

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "Once the wolves are dead, you are able to search their lair. You are disappointed by the haul. A few handfuls of coins. No crafting materials. Just gnawed bones and ruined armor.";
	text2 = "In one corner, you do find something interesting. It's a scourge, a sort of vicious weapon wielded in the High Litha. You take it.";
	code =
		change_coins(73,TRUE);
		reward_give(45);
	break;
	
begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "You are at the entrance to a trap cave. It's a big hole in the mountain, left here to draw in your less intelligent variety of monster. Then Ro hunters can come by and slay them for glory and wealth.";
	text2 = "There are tracks in the snow leading in and out. You can't mistake them. Wolves, in quantity.";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = gf(133,13) == 0;
	question = "Enter the cave.";
	text1 = "You light a torch and search the tunnel. The passage doesn't extend into the mountain too far before it branches into multiple corridors.";
	text2 = "You hear growling. Coming from all around you.";
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = gf(133,13) > 0;
	question = "Enter the cave.";
	text1 = "You enter the cave and poke around. No new beasts have taken up residence since you were last here.";
	action = END_TALK;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Wolves?";
	text1 = "Yes. They start padding out of the shadows, placing themselves between you and the exit. They look at you hungrily. Little pools of drool accumulate at their feet.";
	action = END_TALK;
	code =
		make_outdoor_enc(156,148,0);
	break;
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Leave.";
	text1 = "You decide to leave the trap to more ambitious hunters.";
	action = END_TALK;
	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "Deep in this icy forest, you find yourself facing a drake. A young, strong ice drake, just making its way in the world. It is surrounded by huge lizards. They sway from side to side, hypnotized by the drake's magic.";
	text2 = "When it sees you, it lets out a long warning hiss. It's smart enough to not attack, but it won't let you into its grove.";
	text3 = "The drake is still lurking out there in the woods, surrounded by its charmed reptilian pets. If anything, the creature seems even less afraid of you now.";
	action = SET_TO_1 133 12;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_Greetings._";
	text1 = "_Ahhhsssss._ Drakes can usually speak human speech. Maybe this one never learned it, or maybe it just doesn't feel chatty.";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_Step aside, or I will slay you._";
	text1 = "Your insolence infuriates the creature. It may not be very smart. It spreads its wings, rears its head back, and lets out a furious screech.";
	action = END_TALK;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_I'll be going now._ Back away.";
	text1 = "_Ssssss._ The hungry lizards are disappointed that you get to go free, but the drake allows you to live.";
	action = END_TALK;
	code =
		cancel_out_fight(0,0);
	break;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "_Die, monster!_";
	text1 = "The drake is not capable of fear. It spreads its wings, rears its head back, and lets out a furious screech.";
	action = END_TALK;

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				